<html>
	<head>
		<meta charset='utf-8'>
		<link rel='stylesheet' href='../../css/bootstrap.css' />
		<link rel='stylesheet' href='../../css/upload.css' />
		<link href="../../css/non-responsive.css" rel="stylesheet">
		<link href="../../css/font-awesome.min.css" rel="stylesheet">
		<script type="text/javascript" src="../../js/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/bootstrap.js"></script>
		<script src="../../js/logout.js"></script>
		<title>麦知网——学问有余，可为人师</title>
	</head>

<body>
	{% include 'public/common/header.html' %}
<div class="container" style="margin-top:45px">
	<div class="row">
		<div class="col-xs-12">
			<div>
				<div class="dl_groupMes">
					<div class="pull-left group_img"><img src="{{group.domain}}/{{group.img}}" width="100%"/></div>
					<div class="pull-left group_name">
						<div class="group_nam"><b>{{group.name}}</b></div>
						<div class="return_group"><a href="{% url 'groups:thegroup' group.id %}"><span class="glyphicon glyphicon-arrow-left"></span> 返回小组</a></div>
					</div>
					<div class="pull-left group_space">
						<div class="dl_upload">
							<a href="{% url 'groups:download' group.id %}" type="button" class="btn btn-warning">下载小组资源</a>
						</div>
						<div>剩余空间：{{free|floatformat}}MB  /  {{space|floatformat}}%</div>
						<div class="progress progress-striped dl_progress">
						  <div class="progress-bar progress-bar-info"  role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: {{space|floatformat}}%">
						    <span class="sr-only">{{space|floatformat}}% Complete</span>
						  </div>
						</div>
					</div>
					<div class="clearfix"></div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-xs-1"></div>
		<div class="col-xs-10">
			<div>
				<form class='form-signin' method='post' action="{% url 'groups:upload' group.id %}" enctype="multipart/form-data">
					{% csrf_token %}
					<h2>来上传点东西嘛~  (๑¯ิε ¯ิ๑)  </h2>
					<textarea name='intro' maxlength="100" rows="5" placeholder='介绍文件（请不要超过100字）' class='form-control' required='required'></textarea>
					<input type='file' name='files' class='form-control' />
					<input type='submit' value='上传文件' class='btn btn-primary' style="margin-top:20px;width:100%;"/>
					{% ifequal result '1' %}
					<div class="alert alert-success result">
						文件上传成功 ！
					</div>
					{% endifequal %}
				</form>
			</div>
		</div>
		<div class="col-xs-1"></div>
	</div>
</div>

</body>
</html>
